import request from "@/api";
import { BaseRet } from "@/api/response";

class HomeApi {
  /**
   * 待审批
   * @returns
   */
  static async pendingApproveCount(): Promise<number> {
    return await request({
      url: `home/PendingApproveCount`,
      method: "get",
    });
  }
  /**
   * 已审批
   * @returns
   */
  static async approvedCount(): Promise<number> {
    return await request({
      url: `home/ApprovedCount`,
      method: "get",
    });
  }
}

export default HomeApi;
